package com.example.commen.resource;


import com.example.commen.BuildConfig;

import org.jetbrains.annotations.NotNull;

public class HttpContect {
    public static int SUCCESS = 200;
    public static int ERROR = 0;

    /**
     * 大庆独立服务 http://dq.gaeac.com
     * 主服务：/proDQEfb   naip服务：/djnaip  天气服务：/weather 监视服务：/adsb
     */
    public static final String DaQingBasePath = "http://dq.gaeac.com/proDQEfb";
    /**
     * 测试环境 http://101.201.100.220:8080
     * 主服务：/gaefb   naip服务：/djnaip  天气服务：/weather 监视服务：/adsb
     */
//    public static final String TestBasePath = "http://10.0.31.247:8001/gaefb";

    public static String ReleaseBasePath = "https://www.gaeac.com/mutualEfb";
    public static String TestBasePath = "http://101.201.100.220:8080/gaefb";
//    public static  String TestBasePath = "http://192.168.10.79:8106/gaefb";//文相程
//    public static  String TestBasePath = "http://192.168.10.109:8001/gaefb";//润宇
//    public static  String TestBasePath = "http://192.168.10.154:8888/gaefb";//杨渤
//    public static  String TestBasePath = "http://192.168.10.51:8001/gaefb";//韩创
//    public static  String TestBasePath = "http://localhost:8180/gaefb";//本地
//    public static  String TestBasePath = "http://192.168.10.40:8180/gaefb";//本地

 
    public static String BASE_URL = getBaseUrl();

    public static String getBaseUrl() {
        if (BuildConfig.DEBUG) {
            return TestBasePath;
//            return ReleaseBasePath;
        } else {
            return ReleaseBasePath;
        }
    }


    /**
     * 共有机型专用
     */
    /*public static final String PublicBasePath = "http://101.201.100.220:8080/djnaip";
    public static String getPublicBaseUrl() {
        if (CommentContect.isTestHttp) {
            return PublicBasePath;
        } else {
            return ReleaseBasePath;
        }
    }*/

}
